﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainFrame.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GPMS.Model.GraduationProject>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    我的课题
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>我的课题</h2>

<table id = "tablelist5">
    <tr>
        <th>
            课题名称
        </th>
        <th>
            简介与要求
        </th>
        <th>
            类别
        </th>
        <th>
            发布时间
        </th>
        <th>
           老师
        </th>
        <th>
            最大人数
        </th>
        <th>
            已有人数
        </th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: item.GPName %>
        </td>
        <td>
            <%: item.Description %>
        </td>
        <td>
            <%: item.Type %>
        </td>
        <td>
            <%: String.Format("{0:g}", item.CreateDate) %>
        </td>
        <td>
            <%: (ViewData["guider"] as Dictionary<Guid,string>)[item.GPID]%>
        </td>
        <td>
            <%: item.Maxman %>
        </td>
        <td>
        <%: (ViewData["dic"] as Dictionary<Guid,int>)[item.GPID] %>
        </td>
    </tr>  
<% } %>

</table>
<script type="text/javascript">
    $(function () {
        tableToGrid($("#tablelist5"), { width: 900, height: 480 });
        InitDialogLink($("a.dialog"), $("#dialogPanel"));
    });
</script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
    <link href="<%=Url.Content("~/Content/css/ui.jqgrid.css") %>" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=Url.Content("~/Scripts/i18n/grid.locale-cn.js") %>"></script>
	<script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery.jqGrid.min.js") %>"></script>
</asp:Content>

